<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title> API Reference Documentation
        - Module: validators</title>
    <meta name="MSSmartTagsPreventParsing" content="true" />
    <meta http-equiv="imagetoolbar" content="no" />
    <link href="css/default.css" rel="stylesheet" type="text/css" />
    <link href="css/pygments.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="page">
        <div id="header">
            <h1> API Reference</h1>
        </div>
        <div id="browser">
            <div class="browser-section">
                <h2>Module Index</h2>
                <ul>
                    <li>
                        <a href="formosa.html">formosa</a>
                    </li><li>
                        <a href="formosa.fields.html">formosa.fields</a>
                    </li><li class="active">
                        <a href="formosa.validators.html">formosa.validators</a>
                    </li>
                </ul>
            </div>
            <div class="browser-section">
                <h2>Classes</h2>
                <ul>
                    <li>
                        <a href="formosa.validators.Ascending.html">Ascending</a>
                    </li><li>
                        <a href="formosa.validators.AtLeast.html">AtLeast</a>
                    </li><li>
                        <a href="formosa.validators.AtMost.html">AtMost</a>
                    </li><li>
                        <a href="formosa.validators.Descending.html">Descending</a>
                    </li><li>
                        <a href="formosa.validators.Different.html">Different</a>
                    </li><li>
                        <a href="formosa.validators.EqualTo.html">EqualTo</a>
                    </li><li>
                        <a href="formosa.validators.IfAnyThen.html">IfAnyThen</a>
                    </li><li>
                        <a href="formosa.validators.OnlyIf.html">OnlyIf</a>
                    </li><li>
                        <a href="formosa.validators.Same.html">Same</a>
                    </li><li>
                        <a href="formosa.validators.Unique.html">Unique</a>
                    </li><li>
                        <a href="formosa.ValidationError.html">ValidationError</a>
                    </li>
                </ul>
            </div>
        </div>
        <div id="content">
    <h1>Module: validators</h1>
    <div class="docstring rst"><p>Higher-level constraints on mappings of translated user input.</p>
<p>Fields provide what might be considered rudimentary validation during
translation, but they are limited in scope to single values.  Because
validators work on entire dictionaries of values, they can implement much more
elaborate rules enforcing patterns on user input.</p>
<p>To avoid indeterminate cases, most validators enforce their constraints only
if all the keys they expect are present in the subject <tt class="docutils literal"><span class="pre">dict</span></tt> being
validated.</p>
</div>
    <ul class="link-bar">
    <li class="top"><a href="#header">Top</a></li>
</ul>
    <div>
        <h2>Classes</h2>
            <h3>
                <a href="formosa.validators.Ascending.html">Ascending</a>
            </h3>
            <div class="docstring rst"><p>Validator to assert that a series of values are given in ascending
order.</p></div>
            <ul class="link-bar">
    <li class="top"><a href="#header">Top</a></li>
    <li>
        <a href="formosa.validators.Ascending.html">Details</a>
    </li>
</ul>
            <h3>
                <a href="formosa.validators.AtLeast.html">AtLeast</a>
            </h3>
            <div class="docstring rst"><p>Validator to assert that at least a certain number of values are not
<tt class="docutils literal"><span class="pre">None</span></tt>.</p></div>
            <ul class="link-bar">
    <li class="top"><a href="#header">Top</a></li>
    <li>
        <a href="formosa.validators.AtLeast.html">Details</a>
    </li>
</ul>
            <h3>
                <a href="formosa.validators.AtMost.html">AtMost</a>
            </h3>
            <div class="docstring rst"><p>Validator to assert that no more than a certain number of values are
not <tt class="docutils literal"><span class="pre">None</span></tt>.</p></div>
            <ul class="link-bar">
    <li class="top"><a href="#header">Top</a></li>
    <li>
        <a href="formosa.validators.AtMost.html">Details</a>
    </li>
</ul>
            <h3>
                <a href="formosa.validators.Descending.html">Descending</a>
            </h3>
            <div class="docstring rst"><p>Validator to assert that a series of values are given in descending
order.</p></div>
            <ul class="link-bar">
    <li class="top"><a href="#header">Top</a></li>
    <li>
        <a href="formosa.validators.Descending.html">Details</a>
    </li>
</ul>
            <h3>
                <a href="formosa.validators.Different.html">Different</a>
            </h3>
            <div class="docstring rst"><p>Validator to assert that a set of values are all different from one
another.</p></div>
            <ul class="link-bar">
    <li class="top"><a href="#header">Top</a></li>
    <li>
        <a href="formosa.validators.Different.html">Details</a>
    </li>
</ul>
            <h3>
                <a href="formosa.validators.EqualTo.html">EqualTo</a>
            </h3>
            <div class="docstring rst"><p>Validator to assert that a set of fields are equal to a specific value
according to <tt class="docutils literal"><span class="pre">==</span></tt>.</p></div>
            <ul class="link-bar">
    <li class="top"><a href="#header">Top</a></li>
    <li>
        <a href="formosa.validators.EqualTo.html">Details</a>
    </li>
</ul>
            <h3>
                <a href="formosa.validators.IfAnyThen.html">IfAnyThen</a>
            </h3>
            <div class="docstring rst"><p>Validator to assert that if any field from one set has been specified,
then each field from another set must have a value.</p></div>
            <ul class="link-bar">
    <li class="top"><a href="#header">Top</a></li>
    <li>
        <a href="formosa.validators.IfAnyThen.html">Details</a>
    </li>
</ul>
            <h3>
                <a href="formosa.validators.OnlyIf.html">OnlyIf</a>
            </h3>
            <div class="docstring rst"><p>Validator for when a set of fields may have values only if every field
in another set does.</p></div>
            <ul class="link-bar">
    <li class="top"><a href="#header">Top</a></li>
    <li>
        <a href="formosa.validators.OnlyIf.html">Details</a>
    </li>
</ul>
            <h3>
                <a href="formosa.validators.Same.html">Same</a>
            </h3>
            <div class="docstring rst"><p>Validator to assert that a set of values are all equal to each
other.</p></div>
            <ul class="link-bar">
    <li class="top"><a href="#header">Top</a></li>
    <li>
        <a href="formosa.validators.Same.html">Details</a>
    </li>
</ul>
            <h3>
                <a href="formosa.validators.Unique.html">Unique</a>
            </h3>
            <div class="docstring rst"><p>Validator to assert that a set of values are unique to a corresponding
set of SQLAlchemy model properties.</p></div>
            <ul class="link-bar">
    <li class="top"><a href="#header">Top</a></li>
    <li>
        <a href="formosa.validators.Unique.html">Details</a>
    </li>
</ul>
            <h3>
                <a href="formosa.ValidationError.html">ValidationError</a>
            </h3>
            <div class="docstring rst"><p>Exception raised when a higher-level validation constraint fails.</p></div>
            <ul class="link-bar">
    <li class="top"><a href="#header">Top</a></li>
    <li>
        <a href="formosa.ValidationError.html">Details</a>
    </li>
</ul>
    </div>
        </div>
        <div id="footer">
            Generated with <a href="http://apydia.ematia.de/" class="extern">
            Apydia 0.0.2</a> on 2008-11-26 11:09
        </div>
    </div>
</body>
</html>